package edu.pku.sei.transformation.editor.controller.editparts.link;

import org.eclipse.draw2d.IFigure;

import edu.pku.sei.modeler.model.structure.MetaShapeElement;
import edu.pku.sei.transformation.editor.views.figures.ConnectionFigure;

public class CompatibleEditpart extends TransformationLinkEditPart {

	public CompatibleEditpart(MetaShapeElement conn) {
		super(conn);
	}
	
	@Override
	protected IFigure createFigure() {
		ConnectionFigure figure = new ConnectionFigure();
		figure.setTargetDecoration(ConnectionFigure.TRIANGLE);
		figure.setLabel("<<compatible>>", ConnectionFigure.CONNECTION_FIGURE_MIDDLE);
		return figure;
	}
}
